import { Carousel } from 'antd';

import './index.less'

export class Banner extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        let list = this.props.bannerList.map((item, i) => {
            return (
                <div key={i}>
                    <img src={item} alt="" />
                </div>
            );
        });
        return (
            <div className="banner">
                <Carousel autoplay>
                    {list}
                </Carousel>
            </div>
        )
    }
}